package com.example.service.impl.pc;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.dto.pc.ResourceListDto;
import com.example.entity.mysql.Resource;
import com.example.entity.vo.pc.ResourceListVo;
import com.example.mapper.pc.ResourceMapper;
import com.example.service.pc.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-05-19
 */
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements ResourceService {

    @Autowired
    private ResourceMapper resourceMapper;

    @Override
    public List<ResourceListVo> resourceList(ResourceListDto dto) {
        return resourceMapper.resourceList(dto);
    }

    @Override
    public List<ResourceListVo> deviceProductLineList(ResourceListDto dto, List<String> macList) {
        return resourceMapper.deviceProductLineList(dto, macList);
    }

    /**
     * 从资源表查询模仁/模具
     * @return
     */
    @Override
    public List<Resource> listMould() {
        return resourceMapper.listMould();
    }
}
